package cn.tedu.boot3_5.mapper;

import cn.tedu.boot3_5.entity.Hero;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HeroMapper {
    @Insert("insert into hero values(null,#{name},#{type},#{money})")
    void insert(Hero hero);
    @Select("select * from hero")
    List<Hero> select();
}
